// import axios from "axios";

// //定义一个变量，记录公共前缀
// const baseURL = 'http://localhost:8080/springboot_vue';
// const instance = axios.create({
//     baseURL: baseURL
// })
import request from '@/util/request.js'

//获取所有用户信息
export function UserGetAllService() {
    return request.get('/user/getAll')
}
//根据id获取用户信息
export function UserGetByIdService(id) {
    return request.get('/user/getUserByIdv', {
        params: {
            id: id
        }
    })
}
//根据性别获取用户信息
export function UserGetByGenderService(gender) {
    return request.get('/user/getAllByGender', {
        params: {
            gender: gender
        }
    })
}
//根据id删除用户信息
export function UserDropByIdService(id) {
    return request.get('/user/deleteById', {
        params: {
            id: id
        }
    })
}